<?php

namespace App\Jobs;

use App\Http\Controllers\Wechat\Messages\Notices;

class SendExpressNoticeJob extends Job
{

    protected $express;

    /**
     * Create a new job instance.
     *
     * @param $express
     */
    public function __construct( $express )
    {
        $this->express = $express;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        Notices::expressTracking(
            $this->express->openid,
            "您的快递有新动态啦 ~\(≧▽≦)/~\n",
            $this->express->nu,
            $this->express->context,
            $this->express->time,
            "\n备注：".$this->express->note.' ['.$this->express->com.']',
            $this->express->url
        );
    }

}
